jQuery.jPrint = function (cabecera, contenido) {
    var iframe = document.createElement('IFRAME');
    var doc = null;

    $(iframe).attr('style', 'position:absolute;width:0px;height:0px;left:-500px;top:-500px;');
    document.body.appendChild(iframe);
    doc = iframe.contentWindow.document;

    doc.write('<link type="text/css" rel="stylesheet" href="../../Content/Site.css"></link>');

    doc.write('<div>' + $(cabecera).html() + '</div>');
    doc.write('<div>' + $(contenido).html() + '</div>');

    iframe.contentWindow.focus();
    iframe.contentWindow.print();
    doc.close();
    document.body.removeChild(iframe);

    //    doc.write('<link type="text/css" rel="stylesheet" href="../../Content/Site.css" />');
    //doc.write('<link type="text/css" rel="stylesheet" href="' + links[i].href + '"></link>');
}